<table border="1" class="fullwidth">
    <tr>
	<td rowspan="2" style="vertical-align: top;">
	<div class="AnnouncementsIndex">
	    <h1>
		{% if permissions.add_announcement %}<a class="AddButton button floatleft" href="{% course_url management app='news' command='edit' arguments='announcement' %}" title="Add a new Announcement">+</a>{% endif %}News
	    </h1>
	    {% if not announcements %}<p>No announcements yet</p>{% endif %}
	    {% for item in announcements %}
		{% if permissions.change_announcement %}
		    {% with id=item.id|stringformat:"d" %}
		    <p><h3><a name="#announcement{{forloop.counter}}" href="{% course_url management app='news' command='edit' arguments='announcement'|add:'&'|add:id %}" class="AnnouncementTitle">{{item.date|date:"M d, Y"}} - {{item.title|safe}}</a></h3>{{item.description|safe}}</p>
		    {% endwith %}
		{% else %}
		    <p><h3><a name="#announcement{{forloop.counter}}" class="AnnouncementTitle">{{item.date|date:"M d, Y"}} - {{item.title|safe}}</a></h3>{{item.description|safe}}</p>
		{% endif %}
		{% if not forloop.last %}<hr />{% endif %}
	    {% endfor %}
	</div>
	</td>
	<td style="vertical-align: top;">
	<div class="EventsIndex">
	    <h1>
		{% if permissions.add_event %}<a class="AddButton button" href="{% course_url management app='news' command='edit' arguments='event' %}" title="Add a new Event">+</a>{% endif %}
		Events
	    </h1>
	    {% if not events %}<p>No events</p>{% endif %}
	    {% for item in events %}
		{% if permissions.change_event %}
		    {% with id=item.id|stringformat:"d" %}
    		    <p><h3><a name="#event{{forloop.counter}}" href="{% course_url management app='news' command='edit' arguments='event'|add:'&'|add:id %}" class="EventTitle">{{item.date|date:"M d, Y"}} - {{item.title|safe}}</a></h3>{{item.description|safe}}</p>
		    {% endwith %}
		{% else %}
		<p><h3><a name="#event{{forloop.counter}}" class="EventTitle">{{item.date|date:"M d, Y"}} - {{item.title|safe}}</a></h3>{{item.description|safe}}</p>
		{% endif %}
		{% if not forloop.last %}<hr />{% endif %}
	    {% endfor %}
	</div>
	</td>
    </tr>
    <tr>
	<td style="vertical-align: top;">
	<div class="EventsIndex">
	    <h1>Past Events</h1>
	    {% if not pastevents %}<p>No events</p>{% endif %}
	    {% for item in pastevents %}
		<p><h3><a name="#pastevent{{forloop.counter}}" class="EventTitle">{{item.date}} - {{item.title|safe}}</a></h3>{{item.description|safe}}</p>
		{% if not forloop.last %}<hr />{% endif %}
	    {% endfor %}
	</div>
	</td>
    </tr>
</table>
